package com.smarth.zhizulian.utils;

import android.content.Context;

import java.util.HashMap;

import cn.sharesdk.framework.Platform;
import cn.sharesdk.framework.PlatformActionListener;

/**
 * Created by 18865 on 2018/2/7.
 */

public class SimplePlatformListener implements PlatformActionListener {
    private Context context;

    public SimplePlatformListener(Context context) {
        this.context = context;
    }

    @Override
    public void onComplete(Platform platform, int i, HashMap<String, Object> hashMap) {
        KumaToast.show(context, "分享完成");
    }

    @Override
    public void onError(Platform platform, int i, Throwable throwable) {
        KumaToast.show(context, "分享失败");
    }

    @Override
    public void onCancel(Platform platform, int i) {
        KumaToast.show(context, "分享取消");
    }
}
